package com.taotao.portal.service;

import org.springframework.stereotype.Service;

import com.taotao.rest.webservice.Item;
import com.taotao.rest.webservice.ItemWebService;
import com.taotao.rest.webservice.ItemWebService_Service;
@Service
public class ItemServiceImpl implements ItemService {
	
	@Override
	public Item getItemBaseInfo(long id) {
		ItemWebService_Service factory = new ItemWebService_Service();
		ItemWebService itemWebService = factory.getItemWebServiceImplPort();
		Item itemBaseInfo = itemWebService.getItemBaseInfo(id);
		return itemBaseInfo;
	}

	@Override
	public Item getItemDesc(long id) {
		ItemWebService_Service factory = new ItemWebService_Service();
		ItemWebService itemWebService = factory.getItemWebServiceImplPort();
		Item itemDesc = itemWebService.getItemDesc(id);
		return itemDesc;
	}
	
	

}
